package com.eric.domain.po;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import java.util.Date;

@Data
@Table("tb_role_mapping")
public class RoleMapping {

    private Integer accountId;
    private Integer roleId;
    private Integer version;

    @Column(isLogicDelete = true,onInsertValue = "0")
    private Integer isDeleted;

    @Column(value = "create_time", onInsertValue = "now()")
    private Date createTime;

    @Column(value = "update_time",onInsertValue = "now()", onUpdateValue = "now()")
    private Date updateTime;
}
